/*****************消息发送服务*******************/

import axios from "axios";
import serviceConfig from "@/service/config";


/**
 * 电子邮件发送请求
 * @param {邮箱名}} email 接收邮件的邮箱账户
 */
export function sendEmail(email) {
    return axios({
        url: serviceConfig.baseUrl + '/sender/GET/email',
        method: 'GET',
        params: { email: email },
    })
}

/**
 * 修改密码时-发送邮箱验证码
 * @param email 接收验证码的账户邮箱号
 */
export function sendVerifyCode(email){
    return axios({
        url: serviceConfig.baseUrl+'/sender/GET/email/modify',
        method: 'GET',
        params: { email: email },
    })
}